//
//  FitnessViewController.m
//  B_Project
//
//  Created by 宋强 on 16/3/30.
//  Copyright © 2016年 宋强. All rights reserved.
//

#import "FitnessViewController.h"

@interface FitnessViewController ()

@end

@implementation FitnessViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self creatView];
    
    
//    self.view.backgroundColor = [UIColor redColor];
    
    
    // Do any additional setup after loading the view.
}

- (void)creatView {
    self.view.backgroundColor = [UIColor redColor];
    self.navigationItem.title = @"keep";
    self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor whiteColor], NSFontAttributeName:[UIFont boldSystemFontOfSize:23]};
    self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:0.3451 green:0.3059 blue:0.3725 alpha:1.0];
    
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"rightBarButton"] style:UIBarButtonItemStylePlain target:self action:@selector(rightBarButtonAction:)];
    self.navigationItem.rightBarButtonItem.tintColor = [UIColor whiteColor];

    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"leftBarbutton"] style:UIBarButtonItemStylePlain target:self action:@selector(leftBarButtonAction:)];
    self.navigationItem.leftBarButtonItem.tintColor = [UIColor whiteColor];
}

- (void)rightBarButtonAction:(UIBarButtonItem *)sender {
    NSLog(@"rightBarBUttonAction");
    Fitness_TrainCourse_ViewController *vc = [[Fitness_TrainCourse_ViewController alloc] init];
    vc.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:vc animated:YES];
    
}

- (void)leftBarButtonAction:(UIBarButtonItem *)sender {
    NSLog(@"leftBarButtonAction");
    Fitness_TrainHistory_ViewController *vc = [[Fitness_TrainHistory_ViewController alloc] init];
    vc.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:vc animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
